package cc.openhome;

/**
 * Created by xuzhihan on 17/3/14.
 */


public class  RPG {
    public static void main(String[] args) {
        demoSwordsMan();
        demoMagician();
    }
    static void demoSwordsMan(){
        Swordman swordman=new Swordman();
        swordman.setName("qq");
        swordman.setLevel(100);
        swordman.setBlood(200);
        System.out.printf("剑士：(%s,%d,%d)%n",
                swordman.getName(),swordman.getLevel(),swordman.getBlood());
    }
    static void demoMagician(){
        Magician magician = new Magician();
        magician.setName("张瑞琦");
        magician.setLevel(250);
        magician.setBlood(1000);
        System.out.printf("魔法师：（%s,%d,%d）%n",magician.getName(),magician.getLevel(),magician.getBlood());
    }
}
